package cn.lblbc.webbrowser

import android.content.Intent
import android.os.Bundle
import android.widget.ImageButton
import android.widget.LinearLayout
import androidx.appcompat.app.AppCompatActivity

class ImagesEntranceActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_images_entrance)

        val backButton: ImageButton = findViewById(R.id.backButton)
        val autoCollectLayout: LinearLayout = findViewById(R.id.auto_collect_layout)
        val favoritesLayout: LinearLayout = findViewById(R.id.favorites_layout)

        backButton.setOnClickListener {
            finish()
        }

        autoCollectLayout.setOnClickListener {
            val intent = Intent(this, CollectedImagesActivity::class.java)
            startActivity(intent)
        }

        favoritesLayout.setOnClickListener {
            val intent = Intent(this, FavoritesActivity::class.java)
            startActivity(intent)
        }
    }
}